#include <stdio.h>

int main()
{
  int i = 1;
  for(;i <= 10;i++)
  {
    if(i <= 5)
      fprintf(stdout,"%d\n",i);//i小于5为正确输出
    else 
      fprintf(stderr,"%d\n",i);//i大于5为错误输出
  }
  return 0;
}
